<?php

require_once("lib/xtemplate.class.php");

class vIndex
{
	private $user = null;
	
	public function __construct($user)
	{
		$this->user = $user;
	}
	
	public function show()
	{
		$x = new XTemplate("xtpl/index.xtpl");
		if($this->user->get_state())
		{
			$x->parse("root.profile");
		}
		else
		{
			$x->parse("root.signin");
		}
		$x->parse("root");
		$x->out("root");
	}
}